1
/****************************** Module Header ******************************\
2 * Module Name: DownloadProgressChangedEventArgs.cs
3 * Project: CSMultiThreadedWebDownloader
4 * Copyright (c) Microsoft Corporation.
6 * The class DownloadProgressChangedEventArgs defines the arguments
7 * used by the DownloadProgressChanged event of an IDownloader instance..
9 * This source is subject to the Microsoft Public License.
10 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
11 * All other rights reserved.
13 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
14 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
16 \***************************************************************************/
20 namespace CSMultiThreadedWebDownloader
22 public class DownloadProgressChangedEventArgs
: EventArgs
24 public Int64 ReceivedSize { get; private set; }
25 public Int64 TotalSize { get; private set; }
26 public int DownloadSpeed { get; private set; }
28 public DownloadProgressChangedEventArgs(Int64 receivedSize
,
29 Int64 totalSize
, int downloadSpeed
)
31 this.ReceivedSize
= receivedSize
;
32 this.TotalSize
= totalSize
;
33 this.DownloadSpeed
= downloadSpeed
;